package com.mooc.fuxi.ui.news;

import com.mooc.fuxi.entity.BannerEntity;
import com.mooc.fuxi.entity.NewsEntity;
import com.mooc.fuxi.entity.TypeEntity;
import com.mooc.fuxi.mvvm.BaseViewModel;

import io.reactivex.Observable;

public class NewsViewModel extends BaseViewModel {
    private NewsModel model=new NewsModel();
    public Observable<BannerEntity> requestBanner(){
        return model.requestBanner();
    }
    public Observable<TypeEntity>requestType(){
        return model.requestType();
    }
    public Observable<NewsEntity>requestNews(int page){
        return model.requestNews(page);
    }


}
